package com.mvc.service.impl;

import com.mvc.entity.Order;
import com.mvc.entity.OrderItem;
import com.mvc.mapper.OrderItemMapper;
import com.mvc.service.OrderItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName OrderItemServiceImpl
 * @Description TODO
 * @Author Gla
 * @Date 2021/12/2 9:53
 * @Version 1.0
 **/
@Service
public class OrderItemServiceImpl implements OrderItemService {
    @Autowired
    private OrderItemMapper orderItemMapper;
    @Override
    public List<OrderItem> listSearch(Integer startRow, Integer limit, Integer orderId) {
        return orderItemMapper.listSearch(startRow,  limit,  orderId);
    }

    @Override
    public Integer getCount(Integer orderId) {
        return orderItemMapper.getCount(orderId);
    }
}
